package tungsten;

import org.apache.log4j.PropertyConfigurator;
import tungsten.base.SpringContext;
import tungsten.base.event.*;
import tungsten.base.thread.ThreadPool;
import tungsten.base.utils.TimerUtils;
import tungsten.pb.*;

import java.util.concurrent.TimeUnit;

/**
 * Hello world!
 */
public class App extends PBApp
{
    public App()
    {
        super();
    }

    public static void main(String[] args)
    {
        PropertyConfigurator.configure("./config/log4j.properties");
        SpringContext.initialize("config/spring.xml");
        //System.out.println(SpringContext.getBean("thread.message.count"));

        App app = (App) SpringContext.getBean("app");
        app.start();
    }
}
